import {
	http
} from "@/utils/http";
export const getHomeInfo = (data : any) => {
	return http({
		url: "/order/queryOrder",
		method: "GET",
		data
	});
};


export const getHomeEcharts = (data : any) => {
	return http({
		url: "/order/continuousData",
		method: "GET",
		data
	});
};
//bannerList
export const getBanner = (data : any) => {
	return http({
		url: "/cx/carouselChart/list",
		method: "GET",
		data
	});
}
//订单创建
export const createOrder = (data : any) => {
	return http({
		url: "/msPackage/pay",
		headers: {
			"Content-Type": "multipart/form-data",
		},
		method: 'post',
		data
	})
}

//发货
export const delivery = (data : any) => {
	return http({
		url: "/msPackage/OrderDeliverySend",
		method: 'post',
		data
	})
}
//确认收货
export const confirmReceipt = (data : any) => {
	return http({
		url: "/msPackage/DeliveryReceive",
		method: 'post',
		data
	})
}

//退款
export const returnPay = (data : any) => {
	return http({
		url: "/msPackage/alipayTradeRefund",
		method: 'post',
		data
	})
}